using System;

namespace MetaView.Core;

/// <summary>
/// 实例生成
/// </summary>
public static class InstanceCreater
{
    /// <summary>
    /// 根据对象类型创建对象实例
    /// </summary>
    /// <param name="key">对象类型</param>
    /// <param name="args"></param>
    /// <returns></returns>
    public static object Create(Type key, object[] args)
    {
        return Activator.CreateInstance(key, args);
    }
}